<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="ww" uri="strutsTags"%>
<%@ taglib uri="/WEB-INF/config/jenkov/ajaxtags.tld" prefix="ajax"%>
<%@ taglib uri="/WEB-INF/config/jenkov/tabbedpanetag.tld" prefix="tabs"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<base href="<%=basePath%>">
	<head>
		<%
			String tabSessionIndex = (String) session.getAttribute("tab");
			String tabRequestIndex = request.getParameter("tab");
			if (tabRequestIndex != null && tabRequestIndex.trim().length() > 0) {
				if (!(tabRequestIndex.equals("1") || tabRequestIndex
						.equals("2"))) {
					request.getParameterMap().put("tab", "1");
				}
			} else {
				if (tabSessionIndex == null
						|| tabSessionIndex.trim().length() == 0
						|| (!(tabSessionIndex.equals("1") || tabSessionIndex
								.equals("2")))) {
					session.setAttribute("tab", "1");
				}
			}
		%>

		<!-- tab框架信息 -->
		<link href="<ww:url value="/resource/css/tab.css"/>" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript"
			src="resource/js/jenkov/jenkov_ajaxScript.js"></script>

		<title>我的请假加班</title>
	</head>
	<body>
		<ww:component template="bodyhead">
			<ww:param name="pagetitle" value="'我的请假加班'" />
		</ww:component>
		<table width="100%">
			<tr>
				<td valign="top">
					<tabs:tabbedPane tabParam="tab" defaultTab="1" sessionKey="tab">
						<table cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<tabs:activeTab tabId="1">
									<td class="activeTab">
										<ajax:link targetElement="bodyId">
											<a href="examin/myexamin_search.jsp?tab=1">我的请假列表</a>
										</ajax:link>
									</td>
								</tabs:activeTab>
								<tabs:inactiveTab tabId="1">
									<td class="inactiveTab">
										<ajax:link targetElement="bodyId">
											<a href="examin/myexamin_search.jsp?tab=1">我的请假列表</a>
										</ajax:link>
									</td>
								</tabs:inactiveTab>
								<tabs:activeTab tabId="2">
									<td class="activeTab">
										<ajax:link targetElement="bodyId">
											<a href="examin/myexamin_search.jsp?tab=2">我的加班列表</a>
										</ajax:link>
									</td>
								</tabs:activeTab>
								<tabs:inactiveTab tabId="2">
									<td class="inactiveTab">
										<ajax:link targetElement="bodyId">
											<a href="examin/myexamin_search.jsp?tab=2">我的加班列表</a>
										</ajax:link>
									</td>
								</tabs:inactiveTab>
							</tr>
							<tr>
								<td colspan="2" id="tabContent" class="tabContent">
									<tabs:tabContent tabId="1">
										<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
											marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
											height="430" SRC="examin/myLeaveSearch.action"
											style="overflow-y: auto;"></IFRAME>
									</tabs:tabContent>
									<tabs:tabContent tabId="2">
										<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
											marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
											height="430" SRC="examin/myOvertimeSearch.action"
											style="overflow-y: auto;"></IFRAME>
									</tabs:tabContent>
								</td>
							</tr>
						</table>
					</tabs:tabbedPane>
				</td>
			</tr>
		</table>
		<!-- ajax 框架 bug 流出空格-->
	</body>
</html>